package StructuralPattern.BridgePattern.shape;

import StructuralPattern.BridgePattern.color.Color;

public class Ellipse extends Shape {
    private int majorAxis;
    private int minorAxis;

    public Ellipse(int majorAxis, int minorAxis, Color color) {
        super(color);
        this.majorAxis = majorAxis;
        this.minorAxis = minorAxis;
    }

    @Override
    public void draw() {
        color.applyColor();
        System.out.println("绘制椭圆，长轴为: " + majorAxis + " 短轴为: " + minorAxis);
    }
}